package com.example.common.pojo;

import java.math.BigDecimal;

public class MainHouse {
    private Integer id;

    private Integer calId;

    private Integer roomnum;

    private BigDecimal acerage;

    private String grade;

    private BigDecimal price;

    private BigDecimal sum;

    public MainHouse(Integer id, Integer calId, Integer roomnum, BigDecimal acerage, String grade, BigDecimal price, BigDecimal sum) {
        this.id = id;
        this.calId = calId;
        this.roomnum = roomnum;
        this.acerage = acerage;
        this.grade = grade;
        this.price = price;
        this.sum = sum;
    }
    public MainHouse(){
        this.id = 1;
        this.calId = 1;
        this.roomnum = 1;
        this.acerage = BigDecimal.valueOf(1);
        this.grade = "1";
        this.price = BigDecimal.valueOf(1);
        this.sum = BigDecimal.valueOf(1);;
    }



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCalId() {
        return calId;
    }

    public void setCalId(Integer calId) {
        this.calId = calId;
    }

    public Integer getRoomnum() {
        return roomnum;
    }

    public void setRoomnum(Integer roomnum) {
        this.roomnum = roomnum;
    }

    public BigDecimal getAcerage() {
        return acerage;
    }

    public void setAcerage(BigDecimal acerage) {
        this.acerage = acerage;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade == null ? null : grade.trim();
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getSum() {
        return sum;
    }

    public void setSum(BigDecimal sum) {
        this.sum = sum;
    }

    @Override
    public String toString() {
        return "MainHouse{" +
                "id=" + id +
                ", calId=" + calId +
                ", roomnum=" + roomnum +
                ", acerage=" + acerage +
                ", grade='" + grade + '\'' +
                ", price=" + price +
                ", sum=" + sum +
                '}';
    }
}